export function getRoot(instance) {
    let fiber = instance.__fiber
    while (fiber.parent){
        fiber = fiber.parent
    }
    return fiber
}